package com.tengju.support.domain.model.resource;

import java.util.List;

public interface ResourceRepository {

    List<Resource> findAll();

    Resource find(ResourceId resourceId);

    void add(Resource resource);

    void edit(Resource resource);

    void del(ResourceId resourceId);

    int count(ResourceId resourceId,String title,List<Position> positions);

    List<Resource> queryByPage(ResourceId resourceId,String title,List<Position> positions, Integer offset, Integer pageSize);

    void softDel(ResourceId resourceId);


}
